package com.zzu.base.controller.role.vo;

import jakarta.validation.constraints.*;
import lombok.Data;

@Data
public class RoleUpdateReqVO {
    @Positive
    @NotNull
    private Long id;
    @Size(min = 1,max = 20,message = "角色名称长度为1-20个字符")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5a-zA-Z0-9]*$",message = "角色名称有非法字符")
    private String roleName;
    @Size(min = 1,max = 20,message = "角色代码长度为1-20个字符")
    @Pattern(regexp = "^[a-zA-Z0-9:_\\-]*$",message = "角色代码有非法字符")
    private String roleCode;
}
